<form name="searchform" action="<?php echo $_SERVER['PHP_SELF'];?>">
<input type="hidden" name="entity" value="<?php echo $entity;?>"/>
<input type="hidden" name="action" value="<?php echo $action;?>"/>

<table> 
<tr>
<td>Make:</td>
<td>
<select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
	<option value="0">---------------</option>
	<option value="1">Ford</option>
	<option value="2">Holden</option>
	<option value="3">Search Engines</option>
</select>
</td>
</tr>
<tr>
<td>Model:</td>
<td>
<select name="stage2" size="1">
	<option value="0">--------------</option>
	<option value="1">Coruier</option>
	<option value="2">Escape</option>
	<option value="3">Falcon</option>
	</select>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="search" value="Search"/>
</td>
</tr>
</table>

<script>
<!--

/*
Double Combo Script Credit
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScripts here!
*/

var groups=document.searchform.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()

group[0][0]=new Option("--------------","0")
group[0][1]=new Option("Coruier","1")
group[0][2]=new Option("Escape","2")
group[0][3]=new Option("Falcon","3")

group[1][0]=new Option("--------------","0")
group[1][1]=new Option("Astra","4")
group[1][2]=new Option("Commodore","5")
group[1][3]=new Option("Cruze","6")
group[1][4]=new Option("Rodeo","7")

group[2][0]=new Option("Hotbot","http://www.hotbot.com")
group[2][1]=new Option("Infoseek","http://www.infoseek.com")
group[2][2]=new Option("Excite","http://www.excite.com")
group[2][3]=new Option("Lycos","http://www.lycos.com")

var temp=document.searchform.stage2

function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<group[x].length;i++){
temp.options[i]=new Option(group[x][i].text,group[x][i].value)
}
temp.options[0].selected=true
}

function go(){
location=temp.options[temp.selectedIndex].value
}
//-->
</script>
  
</form>
